<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>phpLister 2 :: Diaporama</title>
    <link rel="stylesheet" href="plugin/diapo/css/style.css" type="text/css" />    
    <script src="plugin/diapo/scripts/javascript.js" type="text/javascript"></script>
    <script type="text/javascript">
    <?
if(!empty($this->lesItems))
foreach($this->lesItems as $unItem)
{ 
    $xml = new SimpleXMLElement($unItem->getMetaItem());
    $x   = $xml->image[0]->x;
    $y   = $xml->image[0]->y;
    $unItem->getIconeItem();
    echo 'lesImages[cpt++] = new jImage('.$unItem->getIdItem().',"'.$unItem->getNomItem().'","'.implode(', ',$unItem->getTagsItem()).'",'.$x.','.$y.')
    ';//indxy';
} 
?>    
    </script>
  </head>
  <body>
    <div id="image">
      <img src="" id="i" alt="" />
      <div id="info">
        <h2 id="nom"></h2>
        <div id="desc"></div>
      </div>
    </div>
    
    <h1 id="header">
      <a href="index.php" onclick="javascript:history.back();return false;">
        <span>phpLister2.0</span>
      </a>
      Diaporama
    </h1>
    
    <p id="footer">
      Passez en plein écran (F11) pour un meilleur rendu.<br />
      Plugin diapo pour phpLister2.0 par Gigigan.</a>.
    </p>
    
    <div id="control">
      <a href="#" id="prec"><img src="plugin/diapo/images/prev.png" alt="&lt;" /></a>
      <a href="#" id="cpt"><img src="plugin/diapo/images/pause.png" alt="pause" /></a> 
      <a href="index.php" id="ret"><img src="plugin/diapo/images/retour.png" alt="retour" /></a>
      <a href="#" id="suiv"><img src="plugin/diapo/images/suiv.png" alt="&gt;" /></a>
    </div>
        
  </body>
</html>
